package c.f.c.a;

import c.f.c.a.j.f;

public class g<TResult> {
    public final f<TResult> a = new f();

    public void a(Exception exception) {
        f fVar = this.a;
        synchronized (fVar.a) {
            if (!fVar.b) {
                fVar.b = true;
                fVar.e = exception;
                fVar.a.notifyAll();
                fVar.i();
            }
        }
    }

    public void b(TResult tResult) {
        f fVar = this.a;
        synchronized (fVar.a) {
            if (!fVar.b) {
                fVar.b = true;
                fVar.d = tResult;
                fVar.a.notifyAll();
                fVar.i();
            }
        }
    }
}
